<?php

?>
<form class="gform" action="?<?php htmlout($action);?>" method="post">
	
	<div class="entry legend"><?php echo $pagetitle?></div>
	<?php include '/includes/error-out.php' ?>
	<div class="entry">
		<label class="label" for="subject_id">Tên Môn Học</label>
		<select class="field width10px" name="subject_id" id="subject_id">
			<option value="">Làm ơn chọn</option>
			<?php foreach($subjects as $subject):?>
				<option value="<?php htmlout($subject['subject_id']); ?>"
				<?php 
					if($subject['subject_id'] == $subject_id)
						echo 'selected="selected"';
				?> ><?php htmlout($subject['subject_name']);?>
				</option>
			<?php endforeach;?>
		</select>
	</div>
	
	<div class="entry">
		<label class="label" for="test_score">Điểm Kiểm Tra</label>
		<input class="field" type="text" name="test_score" id="test_score" value="<?php htmlout($test_score);?>" />
	</div>
	
	<div class="entry">
		<label class="label" for="exam_score1">Điểm Thi Lần 1</label>
		<input class="field" type="text" name="exam_score1" id="exam_score1" value="<?php htmlout($exam_score1);?>" />
	</div>
	
	<div class="entry">
		<label class="label" for="exam_score2">Điểm Thi Lần 2</label>
		<input class="field" type="text" name="exam_score2" id="exam_score2" value="<?php htmlout($exam_score2);?>" />
	</div>

	<div class="entry">
		<label class="label" for="term">Học Kỳ</label>
		<input class="field" type="text" name="term" id="term" value="<?php htmlout($term);?>" />
	</div>
	
	<div class="entry">
		<input type="hidden" name="student_id" value="<?php htmlout($student_id); ?>"/>
		<input type="hidden" name="old_subject_id" value="<?php htmlout($subject_id); ?>" />
		<input type="hidden" name="old_term" value="<?php htmlout($term);?>"/>	
		<input class="button" type="submit" value="<?php htmlout($button);?>"/>
	</div>
</form>
